from odoo import fields,models


class ProductBase(models.Model):
    _name = 's.product.base'
    _description = 'Product Base'
    _sql_constraints = [
        ('uniq_name', 'unique(name)', 'name must be unique.'),
    ]

    name = fields.Char('Name', required=True)
    product_tmpl_ids = fields.One2many('product.template', 's_base_id')